
// 点击切换功能页面
function click(){
    let span=document.querySelectorAll(".main-right .register")
    let div =document.querySelectorAll(".main-right .aa")
    span.forEach((i,j) => {
        i.addEventListener("click",function(){
            span.forEach((k) => {
                k.classList.remove("active")
            });
            i.classList.add("active")
            div.forEach((s) => {
                s.classList.remove("on")
            });
            div[j].classList.add("on")
        })
    });
}
click()